//
//  tableObj.h
//  FCTools
//
//  Created by WJC on 2018/10/25.
//  Copyright © 2018 wjc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/**
 cell样式枚举
 
 - FCTableCellChoice: 选择 子标题在最右侧
 - FCTableCellInput: 输入框(右侧)
 - FCTableCellOnlyTextView: 整行为textview
 - FCTableCellSwitch: 右侧switch控件
 - FCTableCellChoiceDetailLeft: 选择 子标题在最右侧字靠左
 - FCTableCellChoiceInputlLeft: 输入框(左侧)
 - FCTableCellTextView: 顶部带标题textview
  - FCTableCellTimgBLabelCell: 顶部图片底部label的展示集
 - FCTableCellOhterCell: 其他行,用于自定义其他cell
 - 实现othercell设置cell: 后续加cell枚举以99以上叠加
 */
typedef NS_ENUM(NSInteger, cellItemType) {
    FCTableCellChoice=0,
    FCTableCellInput=1,
    FCTableCellOnlyTextView=2,
    FCTableCellSwitch=3,
    FCTableCellChoiceDetailLeft=4,
    FCTableCellChoiceInputlLeft=5,
    FCTableCellTextView=6,
    FCTableCellChoiceSizeToFit=7,
    FCTableCellTimgBLabelCell=8,
    FCTableCellImgChoiceCell=9,
    FCTableCellRightBtnsCell=10,
    FCTableCellChoiceLeftImg=11,//左侧带图片
    FCTableCellChoiceRightImg=12,//右侧带图片
    FCTableCellOtherCell=99,
    
};
    //以下自行定义,设置cell对应type
typedef NS_ENUM(NSInteger, itemType) {
        //交易详情
    FCItemTransferCompany=10,//交易详情企业行
    FCItemTransferSuccess,//交易成功行
    FCItemTransferApprovalEmp,//代付人
    FCItemIsApproval,//是否审批行
    FCItemTransferApproval,//交易审批行
                           //订单转账
    FCItemProductName,//产品名称
    FCItemProductModel,//产品型号
    FCItemProductPrice,//产品价格
    FCItemProductNumber,//产品数量
    FCItemProductAllPrice,//产品总价
    
};
@interface tableObj : NSObject
+ (instancetype)itemWithTitle:(NSString *)title value:(NSString *)value placeHolder:(NSString *)placeHolder cellType:(cellItemType)itemType;
@property (nonatomic,strong) NSString *name;//左边名字
@property (nonatomic,strong) NSString *value;//右边名字
@property (nonatomic,strong) NSString *detailValue;
@property (nonatomic,assign) BOOL hiddenAccessory;//*总是显示右箭头//textfield为是否可编辑
@property (nonatomic,assign) BOOL choice;//*星号
@property (nonatomic,strong) NSString *placeHolder;//提示
@property (nonatomic,strong) id other;//放置模型
@property (nonatomic,strong) id otherDetail;//预留其他
@property (nonatomic,assign) CGFloat height;//行高
@property (nonatomic,assign) BOOL automaticHeight;//是否根据masonry自适应
@property (nonatomic,strong) NSString *pushController;//点击跳转控制器
@property (nonatomic,strong) NSDictionary *pushControllerMode;//点击跳转控制器传值
    //0:选择,
    //1:输入,
    //2:textView,
    //3:switch选择,
    //4:选择,文字靠左,
    //5:输入,文字靠左,
    //6textView,顶部标题
    //7:自适应高度选择,靠右
//顶部图片底部label的展示集 other与FCTIBLModel模型挂钩
    //99:自定义行
@property (nonatomic,assign) cellItemType type;
@property (nonatomic,assign) itemType itemType;
@property (nonatomic,assign) NSInteger choicedCount;
@property (nonatomic,assign) NSInteger maxCount;
    //FCTableCellImgChoiceCell专用,用于图片选择一行占有图片数
    @property (nonatomic,assign) NSInteger maxPerCount;
        //FCTableCellImgChoiceCell专用,用于隐藏选择图片关闭按钮
    @property (nonatomic,assign) BOOL hiddenCloseBtn;
    //FCTableCellImgChoiceCell专用,用于隐藏添加图片关闭按钮
        @property (nonatomic,assign) BOOL hiddenAddBtn;
/**
 UIKeyboardTypeDefault,                // Default type for the current input method.
 UIKeyboardTypeASCIICapable,           // Displays a keyboard which can enter ASCII characters
 UIKeyboardTypeNumbersAndPunctuation,  // Numbers and assorted punctuation.
 UIKeyboardTypeURL,                    // A type optimized for URL entry (shows . / .com prominently).
 UIKeyboardTypeNumberPad,              // A number pad with locale-appropriate digits (0-9, ۰-۹, ०-९, etc.). Suitable for PIN entry.
 UIKeyboardTypePhonePad,               // A phone pad (1-9, *, 0, #, with letters under the numbers).
 UIKeyboardTypeNamePhonePad,           // A type optimized for entering a person's name or phone number.
 UIKeyboardTypeEmailAddress,           // A type optimized for multiple email address entry (shows space @ . prominently).
 UIKeyboardTypeDecimalPad NS_ENUM_AVAILABLE_IOS(4_1),   // A number pad with a decimal point.
 UIKeyboardTypeTwitter NS_ENUM_AVAILABLE_IOS(5_0),      // A type optimized for twitter text entry (easy access to @ #)
 UIKeyboardTypeWebSearch NS_ENUM_AVAILABLE_IOS(7_0),    // A default keyboard type with URL-oriented addition (shows space . prominently).
 UIKeyboardTypeASCIICapableNumberPad NS_ENUM_AVAILABLE_IOS(10_0), // A number pad (0-9) that will always be ASCII digits.
 
 UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable, // Deprecated
 
 */
@property(nonatomic) UIKeyboardType keyboardType;
@end
